import request from '@/utils/request'

const path = "/logistics_rules"

// 查询列表
export function list(query) {
  return request({
    url: path + '/list',
    method: 'get',
    params: query
  })
}

// 查询详细
export function get(id) {
  return request({
    url: path + id,
    method: 'get'
  })
}

// 新增
export function add(data) {
  return request({
    url: path,
    method: 'post',
    data: data
  })
}

// 修改
export function update(data) {
  return request({
    url: path,
    method: 'put',
    data: data
  })
}

// 修改
export function putStatus(data) {
  return request({
    url: path + "/putStatus",
    method: 'put',
    data: data
  })
}

// 删除
export function del(id) {
  return request({
    url: path + "/"+id,
    method: 'delete'
  })
}
//物流规则
export function logistStatus(data) {
  return request({
    url: "/logistics_rules/putStatus",
    method: 'put',
    data: data
  })
}
